package com.nlelpct.manage.constant;

/**
 * @author :小马
 * @date : 2023-07-20
 * 系统常量
 */
public class SystemConstant {

    /**
     * 企业ID
     */
    public static final String COMPANY_ID = "CompanyId";

    /**
     * 系统ID
     */
    public static final String SYSTEM_ID = "SystemId";

    /**
     * 终端信息
     */
    public static final String TERMINAL_INFO = "TerminalInfo";

    /**
     * 员工ID
     */
    public static final String EMPLOYEE_ID = "EmployeeId";

    /**
     * 当前相关模块名称
     */
    public static final String MODULE = "ModuleName";

    /**
     * 当前相关页面信息
     */
    public static final String PAGE = "PageName";

    /**
     * 临时禁用前缀
     */
    public static final String FORBIDDEN_PRE = "ACCOUNT_FORBIDDEN:";

    /**
     * 用户临时禁用过期时间 5分钟
     */
    public static final Long EXPIRED_TIME_5M = 5L;

    /**
     * 用户状态 -- 正常
     */
    public static final Integer USER_STATUS_NORMAL = 1;

    /**
     * 登录时标识是其他错误造成的登录失败, 如已被禁用. 不算账密错误的次数
     */
    public static final String OTHER_ERROR = "otherError";

    /**
     * 用户数据
     */
    public static final String USER_INFO = "userInfo";

    /**
     * 最长允许的不修改密码时间
     */
    public static final Long MAX_PASSWORD_NOT_MODIFIED_TIME = 90L;

    /**
     * 排序规则-升序
     */
    public static final String ORDER_ASC = "ASC";

    /**
     * 排序规则-降序
     */
    public static final String ORDER_DESC = "DESC";
    public static final String ORDER_BY_DESCENDING = "descending";
    public static final String ORDER_BY_ASCENDING = "ascending";

    public static final String LOG_BASE_INFO_REDIS_KEY = "logBaseInfoRedisKey";

    public static final String EMPLOYEE_EXCEL_FILE_PRE = "员工管理";
    public static final String EXCEL_FILE_SUFFIX = ".xlsx";
    public static final String EMPLOYEE_SHEET_NAME = "员工表";


}
